<form class="form-horizontal" method="post">
	<input type="hidden" name="action" value="email" />
	<input type="hidden" name="writer" value="<?php echo $admin_name?>" />
	
	<div class="control-group">
		<label class="control-label">그룹</label>
		<div class="controls">
			<label class="checkbox inline">
				<input name="group_all" value="1" type="checkbox" /> 전체회원
			</label>
<?php foreach($grouplist as $k => $v): ?>
			<label class="checkbox inline">
				<input name="group[]" value="<?php echo $v['idx']?>" type="checkbox" /> <?php echo $v['name']?>
			</label>
			
<?php endforeach;?>
		</div>
	</div>

	<div class="control-group">
		<label class="control-label" for="email">보낸이</label>
		<div class="controls"><input type="text" name="email" id="email" required placeholder="보낸이" class="span6" value="<?php echo $admin_email?>" /></div>
	</div>

	<div class="control-group">
		<label class="control-label" for="subject">제목</label>
		<div class="controls"><input type="text" name="subject" id="subject" required placeholder="제목" class="span6" /></div>
	</div>
		
	<div class="control-group">
		<textarea type="password" name="contents" id="contents" class="span9 redactor" data-imageup="http://<?php echo HOME?>/redactor/image" data-fileup="http://<?php echo HOME?>/redactor/file" style="height:300px;"></textarea>
	</div>
	
	<div class="control-group">
		<div class="controls pull-right">
			<button type="submit" name="submit" id="submit" class="btn">메일보내기</button>
		</div>
	</div>
</form>